package com.gzx.plugin.website.articles.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzx.plugin.website.articles.bo.GzxWebsiteArticlesAddOrEditBo;
import com.gzx.plugin.website.articles.bo.GzxWebsiteArticlesOutQueryBo;
import com.gzx.plugin.website.articles.bo.GzxWebsiteArticlesQueryBo;
import com.gzx.plugin.website.articles.vo.GzxWebsiteArticlesOutVo;
import com.gzx.plugin.website.articles.vo.GzxWebsiteArticlesVo;
import vip.xiaonuo.common.mvc.service.BaseService;

/**
 * @author zjt
 * @description
 * @since 2025/4/22 14:07
 */
public interface GzxWebsiteArticlesService extends BaseService<GzxWebsiteArticlesAddOrEditBo, GzxWebsiteArticlesVo, GzxWebsiteArticlesQueryBo> {

    /**
     * 官网查询文章
     *
     * @param websiteArticlesOutQueryBo
     * @return
     */
    Page<GzxWebsiteArticlesOutVo> getArticlesByType(GzxWebsiteArticlesOutQueryBo websiteArticlesOutQueryBo);

    /**
     * 根据文章ID获取文章内容
     *
     * @param id
     * @return
     */
    String getArticlesContentById(Long id);
}
